package contas;

public class ContaEspecial extends ContaCorrente {
	
	private static final long serialVersionUID = 1L;

	public static final double TAXA = 0.01;
	
	private double bonus;
	
	public ContaEspecial(String numero) {
		this(numero, 0.0);
	}
	public ContaEspecial(String numero, double valor) {
		super(numero, valor);
		this.bonus = 0;
	}

	public void creditar(double valor) { 
		super.creditar(valor);		
		this.bonus = this.bonus + (valor * TAXA);
	}
	
	public void renderBonus() {
		super.creditar(this.bonus);
		this.bonus = 0;
	}
	
	
}
